package com.sp.fresh_produce.service;

import com.github.pagehelper.PageInfo;
import com.sp.fresh_produce.controller.dto.req.ProductListReq;
import com.sp.fresh_produce.controller.dto.req.ProductRequest;
import com.sp.fresh_produce.model.pojo.Product;

public interface AdminProduceService {
    int addProduct(ProductRequest productRequest);

    void updateProduct(Product product);

    void deleteProduct(Integer id);

    void batchUpdateProductStatus(Integer[] ids, Integer sellStatus);

    PageInfo<Product> getProductList(Integer pageNum, Integer pageSize);

    Product getProductDetail(Integer id);

    PageInfo list(ProductListReq productListReq);
}
